<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>机构信息管理</title>
		<link rel="stylesheet" href="css/style.css" type="text/css"></link>
		<jsp:include page="../common/xmeta.jsp"></jsp:include>
		<script type="text/javascript" src="js/updatedpt.js" charset="UTF-8"></script>
	</head>

	<body>
		<table width="80%" class="tab_border" align="center">

			<caption>
				<h2>
					机构信息编辑
				</h2>
			</caption>

			<tr>
				<td>
					机构名称<label style="color: red"> *</label>
				</td>
				<td>
					<input type="hidden" value="${iDepartment.deptID}" id="deptID" name="iDepartment.deptID">
					<input type="text" value="${iDepartment.deptName}" id="deptName" name="iDepartment.deptName">
				</td>
				<td>
					组别类型
				</td>
				<td>
					<select id="type" id="type" name="iDepartment.type">
						<option value="0"
							<s:if test="#request.iDepartment.type == 0">selected="selected"</s:if>
						>
							课题组
						</option>
						<option value="1" <s:if test="#request.iDepartment.type == 1">selected="selected"</s:if>>
							公司
						</option>
						<option value="2" <s:if test="#request.iDepartment.type == 2">selected="selected"</s:if>>
							单位
						</option>
					</select>
				</td>
			</tr>

			<tr>
				<td>
					级别
				</td>
				<td align="left">
					<input type="radio" name="grand" value="0" 
						<s:if test="#request.iDepartment.parentID == 0">
							checked="checked" 
						</s:if>
					onclick="hiddenParentDeptNo()">
					大组
					<input type="radio" name="grand" value="1" onclick="showParentDeptNo()"
						<s:if test="#request.iDepartment.parentID != 0">
							checked="checked" 
						</s:if>
					>
					子组
					<label id="parentDeptNo">${iDepartment.parentName}</label>
					<input type="hidden" value="${iDepartment.parentID}" id="parentID" name="iDepartment.parentID">
				</td>
				<td>
					机构编号<label style="color: red"> *</label>
				</td>
				<td>
					<input type="text" value="${iDepartment.deptNo}" id="deptNo" name="iDepartment.deptNo" readonly="readonly">
				</td>
			</tr>

			<tr>
				<td>
					付款账号
				</td>
				<td>
					<input type="text" value="${iDepartment.payCode}" id="payCode" name="iDepartment.payCode">
				</td>
				<td>
					折扣率<label style="color: red"> *</label>
				</td>
				<td>
					<input type="text" value="${iDepartment.rebate}" id="rebate" name="rebate">
				</td>
			</tr>


			<tr>
				<td>
					电话号码
				</td>
				<td>
					<input type="text" value="${iDepartment.phone}" id="phone" name="iDepartment.phone">
				</td>
				<td>
					传真号码
				</td>
				<td>
					<input type="text" value="${iDepartment.fax}" id="fax" name="iDepartment.fax">
				</td>
			</tr>

			<tr>
				<td>
					透支额度
				</td>
				<td>
					<input type="text" value="${iDepartment.facilityExtent}" id="facilityExtent" name="iDepartment.facilityExtent">
				</td>

				<td>
					邮政编码
				</td>
				<td>
					<input type="text" value="${iDepartment.postCode}" id="postCode" name="iDepartment.postCode">
				</td>
			</tr>

			<tr>
				<td>
					联系地址
				</td>
				<td colspan="3">
					<input type="text" value="${iDepartment.address}" id="address" name="iDepartment.address" style="width: 95%">
				</td>
			</tr>

			<tr>
				<td>
					备注
				</td>
				<td colspan="3">
					<input type="text" value="${iDepartment.remark}" id="remark" name="iDepartment.remark" style="width: 95%">
				</td>
			</tr>

			<tr>
				<td colspan="4" align="center">
					<a id="save" href="#" class="easyui-linkbutton" iconCls="icon-save">保 存</a>&nbsp;&nbsp;&nbsp;
					<a id="close" href="#" class="easyui-linkbutton" iconCls="icon-cancel">关 闭</a>
				</td>
			</tr>
		</table>


		<div id="win" class="easyui-window" title="选择所属大组" style="width: 680px; top: 70px" minimizable="false" maximizable="false"
			closable="true" closed="true">
			<table id="department" style="margin: 1; padding: 1">
			</table>
		</div>
	</body>
</html>